
			<div class="colCenter home">
			
			<?php 
        	if ( $cathome ) {
        		foreach ( $cathome as $it ) {
        			
        			echo '<h3 class="title">'.$it['name'].'</h3>';
        			echo '<div class="listProduct">';
        			
        			$items = $this->duclinh_model->get_product_status( $language, 2, 9, $it['id'] );
        			
        			if ( $items ) {
        				echo '<ul class="list">';
        				foreach ( $items as $item ) {
        					echo '<li class="product top" style="width: 255px">';
        					
        						echo '<strong><a href="'.link_detail( $item['id'], 'product', $item['name']).'">'.$item['name'].'</a></strong>';
        						
        						echo '<a class="imgProduct2" href="'.link_detail( $item['id'], 'product', $item['name']).'">'.image_thumb( $item['image'], 'product', 100, 100, $item['image_text']).'</a>';
        						echo '<ul>';
        							echo '<li> Bảo hành '.$item['field_1'].'</li>';
        							if ( $item['field_2'] ) echo '<li>'.$item['field_2'].'</li>';
        							if ( $item['field_3'] ) echo '<li>'.$item['field_3'].'</li>';
        							if ( $item['field_4'] ) echo '<li>'.$item['field_4'].'</li>';     							
        						echo '</ul>';
        						
        						if ( $item['field_5'] ) echo '<p>Tình trạng: '.$item['field_5'].'</p>';
        						echo '<p>'.number_format( $item['vnd'], '', '', '.' ).' vnd</p>';
        					echo '</li>';
        				}
        				echo '</ul>';
        			}
        			
        			echo '</div>';
        			echo '<div class="clearLeft"></div>';
        		}
        	}

        	$col_1 = '';
        	$col_2 = '';
        	
            if ( $newshome ) {
            	$k = 0;
            	foreach ( $newshome as $it ) {
            		            		
            		if ( $k < 2 ) {
            			$col_1 .= '<li>';
            			$col_1 .= '<a class="titleNews" href="'.link_detail( $it['id'], 'news', $it['name']).'">'.$it['name'].'</a>';
            			$col_1 .= image_thumb( $it['image'], 'news', 111, 140, $it['image_text']);
            			$col_1 .= '<p class="sumary">'.$it['description'].'</p>';
            			$col_1 .= '</li>';
            		}else 
            			$col_2 .= '<li><a href="'.link_detail( $it['id'], 'news', $it['name']).'">'.$it['name'].'</a></li>';
            		
            		$k++;
            	}
            	
            }
         	
            echo '<h3 class="title">Tin tức - sự kiện</h3>';
        	echo '<div class="news">';
        		echo '<div class="oldNews">';
        			echo '<ul class="listOldNews">';
        				echo $col_2;
        			echo '</ul>';
        		echo '</div>';	
        		
        		echo '<div class="hotNews">';
        			echo '<ul class="listHotNews">';
        				echo $col_1;
        			echo '</ul>';
        		echo '</div>';
        	echo '</div>';	
        	
            ?> 		